package edu.zut.cs.software.cms.module.course.web.spring.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import edu.zut.cs.software.cms.base.web.spring.controller.GenericController;
import edu.zut.cs.software.cms.module.course.domain.CourseRecord;
import edu.zut.cs.software.cms.module.course.service.CourseRecordManager;

	/**
	 * 
	 * @author 24372
	 *
	 */
	@Controller
	@RequestMapping("/courserecord")
public class CourseRecordController extends GenericController<CourseRecord, Long, CourseRecordManager>{
		
		CourseRecordManager recordManager;
		
		@RequestMapping(method = RequestMethod.GET, value = "/index.html")
		public String index() {
			String result = "/courserecord/index";
			return result;
		}

		@Autowired
		public void setCourseRecordManager(CourseRecordManager recordManager) {
			this.recordManager = recordManager;
			this.manager = this.recordManager;
		}

	}

